import Vue from 'vue'
import Router from 'vue-router'
import UserLogin from "@/components/UserLogin"
import UserReg from "@/components/UserReg"
import CardAdd from "@/components/CardAdd"
import CardList from "@/components/CardList"
import CardLike from "@/components/CardLike"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'UserLogin',
      component: UserLogin
    },
    {
      path: '/reg',
      name: 'UserReg',
      component: UserReg
    },
    {
      path: '/cardAdd',
      name: 'CardAdd',
      component: CardAdd
    },
    {
      path: '/cardList',
      name: 'CardList',
      component: CardList
    },
    {
      path: '/cardLike',
      name: 'CardLike',
      component: CardLike
    }
  ],
  mode: 'history'
})
